package com.starmark.gateway.project.provider.entity;

import com.starmark.core.framework.base.BaseUpdateModel;
import com.starmark.core.framework.base.IUniqueModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 权限工程
 *
 * @author starmark
 * @date 20-1-23  上午9:39
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class GatewayProject extends BaseUpdateModel implements IUniqueModel {

    /**
     * 工程编码
     */
    private String projectCode;

    /**
     * 工程名称
     */
    private String name;
    /**
     * 密钥
     */
    private String salt;


    private long expireTime;


    /**
     * 登陆地址
     */
    private String loginAddress;

    /**
     * 刷新token时间
     */
    private int tokenRefreshInterval;

    /**
     * 匿名地址
     */
    private String annoUrl;


    private String allowedOrigins;


    private String allowedMethods;


    private String allowedHeaders;


    private String exposedHeaders;


    private Boolean allowCredentials;

    @Override
    public String uniqueCode() {
        return this.getProjectCode();
    }
}
